package o;

import com.huawei.hms.support.api.entity.hwid.HwIDConstant.RETCODE;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.LinkedHashMap;

public class ein {
    public static void ˊ(int i, String str, String str2) {
        Logger.ˎ("BuoyAnalytic", "resultCode=" + i);
        switch (i) {
            case 2000:
            case RETCODE.SIGN_IN_PARAMS_ERROR /*2003*/:
                ˏ("action_restore_result", str, str2, 1);
                return;
            case 2001:
                ˏ("action_restore_install_result", str, str2, 1);
                return;
            case 2101:
                ˏ("action_restore_result", str, str2, 0);
                return;
            case 2102:
            case 2103:
                ˏ("action_restore_install_result", str, str2, 0);
                return;
            case 2300:
                ˏ("action_restore_confirm", str, str2, 1);
                return;
            case 2301:
                ˏ("action_restore_confirm_install", str, str2, 1);
                return;
            case 2400:
                ˎ("action_restore_start", str, str2);
                return;
            case 2401:
                ˏ("action_restore_confirm", str, str2, 0);
                return;
            case 2403:
                ˎ("action_restore_start_install", str, str2);
                return;
            case 2404:
                ˏ("action_restore_confirm_install", str, str2, 0);
                return;
            default:
                return;
        }
    }

    private static void ˎ(String str, String str2, String str3) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("packageName", str2);
        linkedHashMap.put("from", str3);
        Logger.ˎ("AppWelfareAnalyticReportUtils", "eventId=" + str);
        dgh.ˋ(str, linkedHashMap);
    }

    private static void ˏ(String str, String str2, String str3, int i) {
        LinkedHashMap linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("packageName", str2);
        linkedHashMap.put(HiAnalyticsConstant.BI_KEY_RESUST, String.valueOf(i));
        linkedHashMap.put("from", str3);
        Logger.ˎ("AppWelfareAnalyticReportUtils", "eventId=" + str);
        dgh.ˋ(str, linkedHashMap);
    }
}
